package com.example.cinema.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 
 * </p>
 *
 * @author yc138
 * @since 2024-08-26
 */
@Data
@TableName("hall")
public class Hall implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @NotBlank(message = "厅号不能为空!")
    @TableField("name")
    private String name;
    @NotBlank(message = "位置不能为空!")
    @TableField("addr")
    private String addr;
    @NotBlank(message = "类别不能为空!")
    @TableField("type")
    private String type;

    @TableField("num")
    private Integer num;

    @TableField("status")
    private String status;

    @TableField("stu_id")
    private Integer stuId;

    @TableField(exist = false)
     private Studios studios;

    @TableField(exist = false)
    private List<Schedule> schedules;

}
